//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("main_unit.cpp", FormMain);
USEFORM("personal.cpp", FormPersonal);
USEFORM("datamodule.cpp", DataModule_tms); /* TDataModule: File Type */
USEFORM("models.cpp", FormModels);
USEFORM("utilization.cpp", FormUtl);
USEFORM("route.cpp", FormRoute);
USEFORM("state.cpp", FormStateBus);
USEFORM("personal_edit.cpp", FormEditPersonal);
USEFORM("bus.cpp", FormBus);
USEFORM("not_use.cpp", FormNotUse);
USEFORM("in_garage.cpp", FormInGarage);
USEFORM("incident.cpp", FormIncident);
USEFORM("repair.cpp", FormRepair);
USEFORM("sale.cpp", FormSale);
USEFORM("config.cpp", FormConfig);
USEFORM("about.cpp", FormAbout);
USEFORM("on_route.cpp", FormOnRoute);
USEFORM("INSURANCE.cpp", FormInsurance);
USEFORM("place_garage.cpp", FormPlaceGarage);
USEFORM("plan_to.cpp", FormPlanTO);
USEFORM("inspection.cpp", FormInspaction);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
        try
        {
                 Application->Initialize();
                 Application->CreateForm(__classid(TFormMain), &FormMain);
                 Application->CreateForm(__classid(TFormConfig), &FormConfig);
                 Application->CreateForm(__classid(TDataModule_tms), &DataModule_tms);
                 Application->CreateForm(__classid(TFormPersonal), &FormPersonal);
                 Application->CreateForm(__classid(TFormModels), &FormModels);
                 Application->CreateForm(__classid(TFormUtl), &FormUtl);
                 Application->CreateForm(__classid(TFormRoute), &FormRoute);
                 Application->CreateForm(__classid(TFormStateBus), &FormStateBus);
                 Application->CreateForm(__classid(TFormEditPersonal), &FormEditPersonal);
                 Application->CreateForm(__classid(TFormBus), &FormBus);
                 Application->CreateForm(__classid(TFormNotUse), &FormNotUse);
                 Application->CreateForm(__classid(TFormInGarage), &FormInGarage);
                 Application->CreateForm(__classid(TFormIncident), &FormIncident);
                 Application->CreateForm(__classid(TFormRepair), &FormRepair);
                 Application->CreateForm(__classid(TFormSale), &FormSale);
                 Application->CreateForm(__classid(TFormAbout), &FormAbout);
                 Application->CreateForm(__classid(TFormOnRoute), &FormOnRoute);
                 Application->CreateForm(__classid(TFormInsurance), &FormInsurance);
                 Application->CreateForm(__classid(TFormPlaceGarage), &FormPlaceGarage);
                 Application->CreateForm(__classid(TFormPlanTO), &FormPlanTO);
                 Application->CreateForm(__classid(TFormInspaction), &FormInspaction);
                 Application->Run();
        }
        catch (Exception &exception)
        {
                 Application->ShowException(&exception);
        }
        catch (...)
        {
                 try
                 {
                         throw Exception("");
                 }
                 catch (Exception &exception)
                 {
                         Application->ShowException(&exception);
                 }
        }
        return 0;
}
//---------------------------------------------------------------------------
